typedef struct __attribute__((packed)) {
    bool ready;
    void *addr;
    size_t size;
} Addrbox;

int shared_mm_init(int num);
int shared_mm_write(int id, void *addr, size_t size);
int shared_mm_read(int id, void **addr, size_t *size);
